﻿ <controls:ChildWindow x:Class="Zeus.UserControls.AddNewItem_ChildWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                       xmlns:ThemeBlue="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.TwilightBlue"
           Width="500" Height="350" 
           Title="Add New Item" Name="ANI">
    <ThemeBlue:TwilightBlueTheme>
        <Grid x:Name="LayoutRoot" Margin="2">  
        <Grid.Resources>
            <DataTemplate x:Key="ImageTemplete">
                <StackPanel Orientation="Horizontal">
                    <Image Source="{Binding Path=Picture}" Height="50" Width="50"/>
                    <TextBlock Text="{Binding Path=Name}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5" FontSize="15"/>
                </StackPanel>
           </DataTemplate>
        </Grid.Resources>
            <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        
        <ListBox x:Name="Itemcategories" Margin="2" Grid.Column="0" Grid.RowSpan="5" Height="325">
            <ListBoxItem x:Name="ImageListBoxItem" Content="Images" MouseLeftButtonUp="ImageListBoxItem_MouseLeftButtonUp"/>
            <ListBoxItem x:Name="MeshListBoxItem"  Content="Meshes" MouseLeftButtonUp="MeshListBoxItem_MouseLeftButtonUp"/>
            <ListBoxItem x:Name="SoundListBoxItem" Content="Sounds" MouseLeftButtonUp="SoundListBoxItem_MouseLeftButtonUp"/>
            <ListBoxItem x:Name="VideoListBoxItem" Content="Videos" MouseLeftButtonUp="VideoListBoxItem_MouseLeftButtonUp"/>
            <ListBoxItem x:Name="DataListBoxItem" Content="Data" MouseLeftButtonUp="DataListBoxItem_MouseLeftButtonUp"/>
        </ListBox>
        <ListBox x:Name="ListBox_Items" Margin="2" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="3" ItemTemplate="{StaticResource ImageTemplete}" MouseLeftButtonUp="ListBox_Items_MouseLeftButtonUp" ></ListBox>
        <TextBlock Text="Object Name:" Grid.Row="3" Grid.Column="1"></TextBlock>
        <TextBox Height="30" x:Name="Filename" Grid.ColumnSpan="3" Grid.Row="3" Grid.Column="2"></TextBox>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="4" Grid.Column="4"/>
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="4" Grid.Column="3"/>
    </Grid>
        </ThemeBlue:TwilightBlueTheme>
</controls:ChildWindow>

